package com.leagueoflegends.service.impl;

import com.leagueoflegends.bean.ChampionSpell;
import com.leagueoflegends.mapper.ChampionSpellMapper;
import com.leagueoflegends.service.ChampionSpellService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChampionSpellServiceImpl implements ChampionSpellService {

    @Autowired
    ChampionSpellMapper championSpellMapper;

    @Override
    public void insert(ChampionSpell spell) {
        championSpellMapper.insert(spell);
    }

    @Override
    public void delete(Integer championId) {
        championSpellMapper.delete(championId);
    }

    @Override
    public void update(ChampionSpell spell) {
        championSpellMapper.update(spell);
    }

    @Override
    public List<ChampionSpell> select(Integer championId) {
        return championSpellMapper.select(championId);
    }
}
